﻿import React from 'react';
import echarts from 'echarts';
import ReactEcharts from 'echarts-for-react';

/**
 * series 中
 * props.option 传入数据 以及配置
 */
class PieChart extends React.Component {
  render() {
    return (
      <div className={'PieChart'} style={{width: '100%', height: '450px'}}>
        <ReactEcharts
          style={{width: '100%', height: '100%'}}
          echarts={echarts}
          option={this.props.option}
          notMerge={true}
          lazyUpdate={true}
        />
      </div>
    );
  }

}

export default PieChart;